﻿using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;

namespace QBZ.Evaluation.Repositories.DataAccess
{
    public partial class dbEvaluationContext : DbContext
    {

        public dbEvaluationContext(DbContextOptions<dbEvaluationContext> options)
            : base(options)
        {
        }

        public virtual DbSet<TbEvaluation> TbEvaluation { get; set; }
        public virtual DbSet<TbLevel> TbLevel { get; set; }
        public virtual DbSet<TbLevelChild> TbLevelChild { get; set; }
        public virtual DbSet<TbRole> TbRole { get; set; }
        public virtual DbSet<TbRoleChild> TbRoleChild { get; set; }
        public virtual DbSet<TbRoleSkill> TbRoleSkill { get; set; }
        public virtual DbSet<TbSession> TbSession { get; set; }
        public virtual DbSet<TbSkill> TbSkill { get; set; }
        public virtual DbSet<TbSkillChild> TbSkillChild { get; set; }
        public virtual DbSet<TbSkillParent> TbSkillParent { get; set; }
        public virtual DbSet<TbUser> TbUser { get; set; }
        public virtual DbSet<TbOAuth> TbOAuth { get; set; }
        
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            if (!optionsBuilder.IsConfigured)
            {
//#warning To protect potentially sensitive information in your connection string, you should move it out of source code. See http://go.microsoft.com/fwlink/?LinkId=723263 for guidance on storing connection strings.
                optionsBuilder.UseSqlServer("Server=123.206.90.82,1433;Database=dbEvaluation;user id=sa;pwd=Qb123456.");
            }
        }

    
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {


        }
    }
}
